package com.na.onlineservey

class Project {
    String code
    String name
    Boolean isClosedProject
    Boolean isRunningProject

    static constraints = {
        code(blank: false,nullable: false)
        name(blank: false,nullable: false)
        isClosedProject(blank: true,nullable: true)
        isRunningProject(blank: true,nullable: true)
    }
    static mapping = {
        sort "code"
    }
    public String toString() {
        return name;
    }
}
